package net.cyue.android;

import android.util.Log;
import android.webkit.WebView;

import androidx.webkit.WebViewClientCompat;

import com.wragony.android.jsbridge.JsBridge;

public class MyWebViewClientCompat extends WebViewClientCompat
{
    public final JsBridge jsBridge;

    public MyWebViewClientCompat(JsBridge jsBridge)
    {
        this.jsBridge = jsBridge;
    }

    @Override
    public void onPageFinished(WebView view, String url) {
        super.onPageFinished(view, url);
        Log.d(JsBridge.TAG, "start load JsBridge");
        // 注入 JS
        this.jsBridge.injectJs(view);
    }
}


